<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
       /*  let obj = {
            uname:"张三",
            age:18,
            gender:'男'
        }

        let {gender} = obj;

        // console.log(uname)
        // console.log(age)
        console.log(gender) */

        let arr = [1,2,3,4,5];
        let [,,,d,e] = arr;

        console.log(d)
        console.log(e)

        // console.log(arr[0])
        // console.log(arr[1])
        // console.log(arr[2])
        // console.log(arr[3])
        // console.log(arr[4])







    </script>
</body>
</html>